package com.ruibang.glass.quality.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 成品粗糙度信息
 * </p>
 *
 * @author wujie
 * @since 2024-03-21
 */

@ApiModel(value = "成品粗糙度信息")
@TableName("g_quality_roughness")
@Data
public class QualityRoughness {

    @ApiModelProperty(value = "粗糙度ID")
    @TableId(value = "roughness_id", type = IdType.ASSIGN_ID)
    private String roughnessId;
    @ApiModelProperty(value = "玻璃ID")
    private String glassId;
    @ApiModelProperty(value = "产品型号(1:G8.5,2:G8.6,3:G8.6+,4:G8.7)")
    private String glassModel;
    @ApiModelProperty(value = "测定日期")
    private LocalDate measureDate;
    @ApiModelProperty(value = "抽检时间")
    private String checkTime;
    @ApiModelProperty(value = "所属产线")
    private String productLine;
    @ApiModelProperty(value = "测量人")
    private String userId;
    @ApiModelProperty(value = "判定(合格:0,不合格:1)")
    private String decide;
    @ApiModelProperty(value = "粗糙度1H")
    @TableField("roughness_1h")
    private Float roughness1h;
    @ApiModelProperty(value = "粗糙度2H")
    @TableField("roughness_2h")
    private Float roughness2h;
    @ApiModelProperty(value = "粗糙度3H")
    @TableField("roughness_3h")
    private Float roughness3h;
    @ApiModelProperty(value = "粗糙度4H")
    @TableField("roughness_4h")
    private Float roughness4h;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "是否删除(1:是,0:否)")
    @TableLogic
    private String isDelete;

    @ApiModelProperty(value = "关联图片Id列表")
    @TableField(exist = false)
    private List<String> fileIds;

    @ApiModelProperty(value = "编辑时删除图片Id列表")
    @TableField(exist = false)
    private List<String> deleteFileIds;

    @ApiModelProperty(value = "产线名称")
    private String productLineName;

    @ApiModelProperty(value = "用户名称")
    @TableField(exist = false)
    private String userName;
}
